package com.sunjob.loginserver.service;

import com.sunjob.common.domain.img.SysImg;
import com.sunjob.common.domain.loginServer.SysRole;
import com.sunjob.common.domain.loginServer.SysUser;
import com.sunjob.common.result.Result;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 *
 * @Author : Wangzurong
 * @create 2022-07-24 18:36
 */
@Service
public interface UserService {
    boolean login(String username,String password);
    Integer batchLogout(List<Integer> ids);
    Integer getNumByLoginName(String loginName);
    Integer addUser(SysUser user);

    Result<Boolean> udpateUser(SysUser user);

    boolean loginMulti(String name, String pwd, String terminal);

    SysImg udpateAvatar(Long loginId, SysImg sysImg);
}
